<template>
  <el-dialog
      :visible.sync="info.show"
      destroy-on-close
      :close-on-click-modal="false"
      :width="info.width"
      top="50px"
      :append-to-body="true"
  >
    <template slot="title">
      <div class="custom-dialog-title">
        <div class="line">
          <div class="filling"></div>
          <div class="normal"></div>
          <div class="filling"></div>
        </div>
        <div class="title-container">
          <div class="title">{{info.title}}</div>
          <div class="sub-title">{{info.subTitle}}</div>
          <i class="el-icon-close close" @click="close"></i>
        </div>
      </div>
    </template>
    <div class="dialog-content">
      <slot></slot>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props:['info'],
  data(){
    return{

    }
  },
  methods: {
    close() {
      this.info.show = false
    }
  }
}
</script>
